using UnityEngine;
using System.Collections;

public enum KeyboardMessageType
{
	KEY_UP,
	KEY_DOWN,
};

public class KBMes : Message
{
	private KeyboardMessageType mType;
	private KEY mKey;
	
	public KBMes(KeyboardMessageType aType, KEY aKey){Set(aType, aKey);}
	
	public void Set(KeyboardMessageType aType, KEY aKey)
	{
		mType = aType;
		mKey = aKey;
	}
	
	override public void pack()
	{
		//K#TYPE#KEY#
		messageBuffer = "K#" + mType.ToString("D") + "#" + mKey.ToString("D") + "#\0";
	}
}

public enum KEY
{
	ZERO,
	ONE,
	TWO,
	THREE,
	FOUR,
	FIVE,
	SIX,
	SEVEN,
	EIGHT,
	NINE,
	SHIFT,
	CONTROL,
};